import requests


headers = {
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,ar;q=0.7",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "referer": "https://detail.tmall.com/",
    "sec-ch-ua": '"Not)A;Brand";v="8", "Chromium";v="138", "Microsoft Edge";v="138"',
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": '"Windows"',
    "sec-fetch-dest": "script",
    "sec-fetch-mode": "no-cors",
    "sec-fetch-site": "same-site",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0",
}
cookies = {
    "cna": "aOGMIKFiNEACAbcR5E3KwR03",
    "lid": "%E5%B9%B2%E6%8B%94%E9%BE%99",
    "isg": "BC0t-DgnOdC4O908PKd0RGZuPMmnimFcLmkdbm8yaUQz5k2YN9pxLHu10LoA5nkU",
    "dnk": "%5Cu8D85%5Cu7A7A%5Cu95F4%5Cu5C0F%5Cu9F99",
    "tracknick": "%5Cu5E72%5Cu62D4%5Cu9F99",
    "_l_g_": "Ug%3D%3D",
    "unb": "4141399939",
    "lgc": "%5Cu5E72%5Cu62D4%5Cu9F99",
    "cookie1": "B0T%2BEM1LhmWcZGi1HlADpXYvm4s8KTR0cZgBcij2UPE%3D",
    "login": "true",
    "wk_cookie2": "11cc21be3691e3bef7e31f00b2097304",
    "cookie17": "Vy0XH%2FvdtWEupw%3D%3D",
    "_nk_": "%5Cu5E72%5Cu62D4%5Cu9F99",
    "cancelledSubSites": "empty",
    "sg": "%E9%BE%999c",
    "t": "bbf9a9d29ae40645091f42218000259d",
    "sn": "",
    "_tb_token_": "ede147eeee5d7",
    "wk_unb": "Vy0XH%2FvdtWEupw%3D%3D",
    "mtop_partitioned_detect": "1",
    "_m_h5_tk": "1874536d7ac08d0f56fd6b724c551a4d_1753879960244",
    "_m_h5_tk_enc": "cbcb171e9d405317e201ce65dd411980",
    "havana_sdkSilent": "1753900123254",
    "uc1": "cookie15=W5iHLLyFOGW7aA%3D%3D&cookie21=U%2BGCWk%2F7pY%2FF&existShop=false&pas=0&cookie14=UoYbyGQqhHZl2Q%3D%3D&cookie16=VFC%2FuZ9az08KUQ56dCrZDlbNdA%3D%3D",
    "uc3": "vt3=F8dD2fntbUnrpJ4CGsE%3D&id2=Vy0XH%2FvdtWEupw%3D%3D&lg2=UtASsssmOIJ0bQ%3D%3D&nk2=2%2Bo4E1g7",
    "uc4": "id4=0%40VXqZjUbeE1ouuElN8zTNW3sZYpPL&nk4=0%402YSBwsKq94cCPRvQ75h8b80%3D",
    "havana_lgc_exp": "1784975323255",
    "cookie2": "2a1494b387b4a2d5bf7046f6e68c8544",
    "csg": "7a69d063",
    "sgcookie": "E100k/SYZq2F3raIATiqocqAZTbSnfqbd0as5lZ5N2mkCx2kIHqivaJQpY7VBgxNuWhTCx9w5xrRDox13M05o/gOT5hIs6nvNwzI8qDlBpfUc2k=",
    "tfstk": "gXosh-mnq1f6xVZAhPvFVZq6kZrflp-y5twxExINHlEThiMoGArqHSobcXcLkcrZQXtjEbaakmPqcOmINiSwsFDAcorvaQ-y4ADamodrXPywl12zB-K4k-QLj-k_QQsp4ADGpO1vU2KPhnXAarFxMPUdpRPdDRUtMyILnWITHGeA9pN39RBTWrIdJRyPBihYDpMLt-2TDPhYvpwmM867hFNiCLTZQ8fOXVDTOiIxXn4TNFF3KJoCPPFSBc1O6E2_57HTOCdBLqaKnricniaZB4c0efC91oHQFbwS1EW012HrbqH6AQEZjA38k0dckbZsGznTRtIjIlPbAJnJ3aVEA5lxfypPVrrK4zEt8eAaulwSMcc1hih-LYog-mO59S0aEkesM3dC4rSzNwidl9alcJNydp_coAO1T07oLpc8WJ2_8p9C6q4TKJNydp_coPe3CWJBd13c.",
}
url = "https://h5api.m.tmall.com/h5/mtop.taobao.rate.detaillist.get/6.0/"
params = {
    "jsv": "2.7.5",
    "appKey": "12574478",
    "t": "1753871334042",
    "sign": "d24cfeabe3de5ecdaa0b9ed5ef4e88aa",
    "api": "mtop.taobao.rate.detaillist.get",
    "v": "6.0",
    "isSec": "0",
    "ecode": "1",
    "timeout": "20000",
    "type": "jsonp",
    "dataType": "jsonp",
    "jsonpIncPrefix": "pcdetail",
    "callback": "mtopjsonppcdetail17",
    "data": '{"showTrueCount":false,"auctionNumId":"732745196167","pageNo":1,"pageSize":20,"rateType":"","searchImpr":"-8","orderType":"","expression":"","rateSrc":"pc_rate_list"}',
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)

print(response.text)
print(response)
